uDig

«  Georeference an Image   ::   Contents   ::   Working with Layers  »

Set raster transparent color

Raster files often have a set colour that is used to indicate “no data”. This occurs where a satellite field covers a diagonal swath of territory that does not line up with a rectangular image. It can also occur where simple line work (such a topographical map) is recorded on a white background; by marking the background as transparent you can see through to the other layers.

  1. Select your raster layer
  2. Open the Style Editor dialog using the button on the Layers view toolbar
  3. Choose the Raster Color Mask style page
  4. Press the checkbox to Enable color mask
  5. Press the color chooser and select the color to be made transparent

Related reference

Raster Style Pages

Example Use

  1. In the original image the white background is opaque preventing you from seeing the elevation map layer.

    _images/color_mask.png
  2. This is result of setting transparent color to white; allowing the elevation map in yellow to show through:

    _images/color_mask_2.png

«  Georeference an Image   ::   Contents   ::   Working with Layers  »